package com.lk.api.app;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;

/**
 * Created by lk on 2014/12/16.
 */
public class MyActivityStyle extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        MyCustomEvent myCustomEvent = new MyCustomEvent(this);
        setContentView(myCustomEvent);

        myCustomEvent.setOnKeyDown(new MyCustomEvent.MyOnKeyDown() {
            @Override
            public void onKeyDown(String KeyObject) {
                Toast.makeText(MyActivityStyle.this, KeyObject, Toast.LENGTH_LONG).show();
            }
        });
    }

}
